package com.example.tuomin.result;

import lombok.Data;

/**
 * @className: R
 * @description: TODO 类描述
 * @author: liangshijie
 * @date: 2023/4/25
 **/
@Data
public class R<T> {
    private int code;
    private String msg;
    private T data;

    public static  <T> R<T> ok(T data) {
        R<T> objectR = new R<>();
        objectR.setCode(200);
        objectR.setData(data);
        objectR.setMsg("请求成功");
        return objectR;
    }
}